
# find the include directory... this is where e.g. the includes/SAX.h lies.
find_path (LIBXML2_INCLUDE_DIR
            NAMES libxml/SAX.h
            )



find_library (LIBXML2_LIBRARIES
              NAMES xml2 libxml2
)

if (LIBXML2_INCLUDE_DIR AND LIBXML2_LIBRARIES)
  set (LIBXML2_FOUND YES)
else()
  set (LIBXML2_FOUND NO)
endif()

